<?php

namespace api\modules\Wechat;

/**
 * wechat module definition class
 */
class Module extends \yii\base\Module
{
    /**
     * {@inheritdoc}
     */
    public $controllerNamespace = 'api\modules\Wechat\controllers';

    /**
     * {@inheritdoc}
     */
    public function init()
    {
        parent::init();
        $this->modules = [
            'sns' => [
                'class' => 'api\modules\Wechat\modules\Sns\Module',
            ],
            'payment' => [
                'class' => 'api\modules\Wechat\modules\Payment\Module',
            ],
        ];
        // custom initialization code goes here
    }
}
